<?php
/**
 * Created by PhpStorm.
 * User: hxm
 * Date: 2019/1/7
 * Time: 11:00
 */
$var=0;
while (true){
    $url="http://192.168.6.190:2015/?class=User&method=getInfoByUid&param_array=0";
    $ch = curl_init();
    $timeout = 5;
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $file_contents = curl_exec($ch);
    curl_close($ch);

//    echo $file_contents."\n";
    $var++;
    echo $var."-";


//    sleep(1);
}